export const mixins = {

  data() {
    return {
     
    }; 
  },
    methods: {
        clickItem(name) { 
            console.log('父组件检测到动画播放完成');
            if (name == 'LiXinJi17' && this.eritems == 1 && this.taskstep == 3) { 
                // 
                this.tipstext = '离心机电源已开启'
                this.timer = setTimeout(() => { 
                    this.tipstext = ''
                    this.eritem = 2
                    clearTimeout(this.timer)
                },1000)
            }
            if (name == 'LiXinJi17' && this.eritems == 2 && this.taskstep == 3) { 
                // 
             this.eritems = 2.1
            }
             if ( (name == 'LiXinJi13_3' || name == 'LiXinJi13_2') && this.eritems == 2.1 && this.taskstep == 3) { 
                // 
             this.eritem = 3
             }
              if ( (name == 'LiXinJi36_2' || name == 'LiXinJi36_3') && this.eritems == 3 && this.taskstep == 3) { 
                // 
                  //   
                this.tipstext='样品数量不成偶数时，需对称放入同等质量的试管，保持离心时离心力平衡。'
                this.timer = setTimeout(() => { 
                    this.tipstext = ''
                    this.eritems = 3.1
                    clearTimeout(this.timer)
                },1000)
                 
              }
            if (name == 'LiXinJi4' && this.eritems == 3.1 && this.taskstep == 3) { 
                // 
             this.eritem = 4
            }
            if (name == '4' && this.eritems == 4 && this.taskstep == 3) { 
                // 
                this.szuiboxshow = true
                this.bztext='点击“+/-”按钮，设置离心时长为5min，离心转速为3500'
            }
            if (name == 'LiXinJi17' && this.eritems == 6 && this.taskstep == 3) { 
                // 
              this.eritems =6.1
            }
             if ((name == 'LiXinJi11_1'|| name=='LiXinJi12') && this.eritems == 6.1 && this.taskstep == 3) { 
                // 
              this.eritems =6.2
             }
              if (name == 'LiXinJi4' && this.eritems == 6.2 && this.taskstep == 3) { 
                // 
             this.eritems = 6.3
              }
            if (name == 'LiXinJi17' && this.eritems == 6.3 && this.taskstep == 3) { 
                // 
             this.eritem = 7
            }
              if (name == 'LiXinJi31_1' && this.eritems ==1 && this.taskstep == 4) { 
                // 
             this.eritem = 2
              }
            if (name == 'TuoGaiJi7' && this.eritems ==2 && this.taskstep == 4) { 
                this.tipstext ='已完成开盖'
             this.timer = setTimeout(() => {
                 this.tipstext = ''
                 this.taskfn(5)
                 clearTimeout(this.timer)
             }, 1000);
            }
             if (name == 'DianNao3' && this.eritems ==2.1 && this.taskstep == 5) { 
            this.eritem  = 3
             }
             if (name == 'FenXiYi23' && this.eritems ==6 && this.taskstep == 5) { 
            this.eritems  = 6.1
             }
             if (name == 'BingXiang1' && this.eritems ==6.1 && this.taskstep == 5) { 
         this.eritems = 6.2
             }
             if (name == 'FenXiYi45' && this.eritems ==6.2 && this.taskstep == 5) { 
                 this.tipstext = '试剂已放入'
                 this.timer = setTimeout(() => { 
                     this.tipstext = ''
                     this.eritems = 6.3
                     clearTimeout(this.timer)
                 },1000)
             }
             if (name == 'FenXiYi23' && this.eritems ==6.3 && this.taskstep == 5) { 
               this.eritem  = 7
             }
            if (name == 'FenXiYi17' && this.eritems ==7 && this.taskstep == 5) { 
               
                 this.tipstext = '清洗液充足无需添加'
                this.timer = setTimeout(() => {
                    this.tipstext = ''
                    this.eritem = 8
                    clearTimeout(this.timer)
                }, 1000);
            }
               if (name == 'BingXiang1' && this.eritems ==8 && this.taskstep == 5 && this.sjstep == 1) { 
               
                this.eritems =8.1
               
               }
             if (name == 'FenXiYi46' &&this.eritems == 8 &&this.taskstep == 5 &&this.sjstep == 5
      )     {
                     this.eritems =8.5
             }
            if (name == 'JiaoZhunPin2' &&this.eritems == 8.5 &&this.taskstep == 5 &&this.sjstep == 5
      ) {
                        this.tipstext = '已将校准品放入进样口'
                                this.timer = setTimeout(() => {
                                    this.tipstext = ''
                                    this.eritems = 8.51
                                    clearTimeout(this.timer)
                                }, 1000);
      }
                   if (name == 'FenXiYi46' &&this.eritems == 8.51 &&this.taskstep == 5 &&this.sjstep == 5) {
                     this.sjstep = 6
                   }
            if (name == '11' &&this.eritems == 8 &&this.taskstep == 5 &&this.sjstep == 6) {
                     this.sjstep = 7
            }
             if (name == 'FenXiYi46' &&this.eritems == 8 &&this.taskstep == 5 &&this.sjstep == 7) {
                     this.eritems = 8.71
             }
            if (name == 'JiaoZhunPin2' &&this.eritems == 8.71 &&this.taskstep == 5 &&this.sjstep == 7) {
                     this.eritems = 8.72
            }
              if (name == 'FenXiYi46' &&this.eritems == 8.72 &&this.taskstep == 5 &&this.sjstep == 7) {
                     this.sjstep = 8
              }
         if (name == 'BingXiang1' &&this.eritems == 9 &&this.taskstep == 5 &&this.sjstep == 1) {
                     this.eritems = 9.1
         }
         if (name == 'FenXiYi46' &&this.eritems == 9 &&this.taskstep == 5 &&this.sjstep == 5) {
                     this.eritems = 9.4
         }
         if (name == 'ZhiKongPin1' &&this.eritems == 9.4 &&this.taskstep == 5 &&this.sjstep == 5) {
                     this.eritems = 9.41
         }
          if (name == 'FenXiYi46' &&this.eritems == 9.41 &&this.taskstep == 5 &&this.sjstep == 5) {
                     this.sjstep = 6
          }
        if (name == '19' &&this.eritems == 9 &&this.taskstep == 5 &&this.sjstep == 6) {
                     this.sjstep = 7
        }
        if (name == 'FenXiYi46' &&this.eritems == 9 &&this.taskstep == 5 &&this.sjstep == 7) {
                     this.eritems = 9.7
        }
        if (name == 'ZhiKongPin1' &&this.eritems == 9.7 &&this.taskstep == 5 &&this.sjstep == 7) {
                     this.eritems = 9.71
         }
         if (name == 'FenXiYi46' &&this.eritems == 9.71 &&this.taskstep == 5 &&this.sjstep == 7) {
                      this.sjstep = 8
        }
         if (name == 'FenXiYi46' &&this.eritems == 10 &&this.taskstep == 5 &&this.sjstep == 3) {
                     this.eritems = 10.3
         }
        if (name == 'BiaoBen1_1' &&this.eritems == 10.3 &&this.taskstep == 5 &&this.sjstep == 3) {
                     this.eritems = 10.31
         }
        if (name == 'FenXiYi46' &&this.eritems == 10.31 &&this.taskstep == 5 &&this.sjstep == 3) {
                    this.sjstep = 4
        }
         if (name == '26' &&this.eritems == 10&&this.taskstep == 5 &&this.sjstep == 4) {
                    this.sjstep = 5
         }
         if (name == 'FenXiYi46' &&this.eritems == 10 &&this.taskstep == 5 &&this.sjstep == 5) {
                     this.eritems = 10.5
         }
         if (name == 'BiaoBen1_1' &&this.eritems == 10.5 &&this.taskstep == 5 &&this.sjstep == 5) {
                     this.eritems = 10.51
         }
        if (name == 'FenXiYi46' &&this.eritems == 10.51 &&this.taskstep == 5 &&this.sjstep == 5) {
                   this.sjstep = 6
        }
        if (name == 'DianNao1_2' &&this.eritems == 11 &&this.taskstep == 5 ) {
          //  this.sjstep = 6
          this.imgbgboxshow = true
        }
         if (name == 'FenXiYi40' &&this.eritems == 14 &&this.taskstep == 5 ) {
          //  this.sjstep = 6
           this.timer = setTimeout(() => {
             
            this.$router.push({
        name: 'wcSy'
            })
             clearTimeout(this.timer)
           }, 1500);
        }
       
        }
        ,
        sjia() { 
            if (this.szuir < 5500) { 
                this.szuir +=500
            }
        },
        sjias() { 
           
            if (this.szuit < 5) { 
                this.szuit +=1
            }
        },  sjiaa() { 
             if (this.szuir > 500) { 
                this.szuir -=500
            }
        },
        sjiaas() { 
            if (this.szuit > 1) { 
                this.szuit -=1
            }
        }
    }
};